package siyuan.run.logger.config;

import feign.Contract;
import feign.Feign;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: sy
 * @description:
 * @author: Jacob
 * @create: 2020-11-24 22:13
 **/
@Configuration
public class FeignConfiguration {


    /**
     * 日志等级：
     * NONE:不记录(默认)
     * BASIC:只记录请求、URL、响应状态码和执行时间
     * HEADERS:记录基本信息、请求和响应标题
     * FULL:记录请求、响应的标题、正文和元数据
     * @return
     */
    @Bean
    public Logger.Level contract(){
        return Logger.Level.FULL;
    }

}
